package com.wx.mythread.thread;

public class SynchronizeRecusion  {
    int a = 0;
    public static void main(String[] args) {
        SynchronizeRecusion recusion = new SynchronizeRecusion();
        recusion.method();
    }

    private synchronized void method() {
        System.out.println("我是method，a="+a);
        if (a == 0){
            a++;
            method();
        }
    }
}
